import service from '@/utils/request'
// @Tags ProjectTypes
// @Summary 创建projectTypes表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ProjectTypes true "创建projectTypes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /projectTypes/createProjectTypes [post]
export const createProjectTypes = (data) => {
  return service({
    url: '/projectTypes/createProjectTypes',
    method: 'post',
    data
  })
}

// @Tags ProjectTypes
// @Summary 删除projectTypes表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ProjectTypes true "删除projectTypes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /projectTypes/deleteProjectTypes [delete]
export const deleteProjectTypes = (params) => {
  return service({
    url: '/projectTypes/deleteProjectTypes',
    method: 'delete',
    params
  })
}

// @Tags ProjectTypes
// @Summary 批量删除projectTypes表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除projectTypes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /projectTypes/deleteProjectTypes [delete]
export const deleteProjectTypesByIds = (params) => {
  return service({
    url: '/projectTypes/deleteProjectTypesByIds',
    method: 'delete',
    params
  })
}

// @Tags ProjectTypes
// @Summary 更新projectTypes表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ProjectTypes true "更新projectTypes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /projectTypes/updateProjectTypes [put]
export const updateProjectTypes = (data) => {
  return service({
    url: '/projectTypes/updateProjectTypes',
    method: 'put',
    data
  })
}

// @Tags ProjectTypes
// @Summary 用id查询projectTypes表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.ProjectTypes true "用id查询projectTypes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /projectTypes/findProjectTypes [get]
export const findProjectTypes = (params) => {
  return service({
    url: '/projectTypes/findProjectTypes',
    method: 'get',
    params
  })
}

// @Tags ProjectTypes
// @Summary 分页获取projectTypes表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取projectTypes表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /projectTypes/getProjectTypesList [get]
export const getProjectTypesList = (params) => {
  return service({
    url: '/projectTypes/getProjectTypesList',
    method: 'get',
    params
  })
}

// @Tags ProjectTypes
// @Summary 不需要鉴权的projectTypes表接口
// @Accept application/json
// @Produce application/json
// @Param data query hairmemberReq.ProjectTypesSearch true "分页获取projectTypes表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /projectTypes/getProjectTypesPublic [get]
export const getProjectTypesPublic = () => {
  return service({
    url: '/projectTypes/getProjectTypesPublic',
    method: 'get',
  })
}
